<template>
	<view class="tabbarpage-container">
		<!--胶囊上方-->
		<div :style="{'padding-top': statusBarHeight}">
			
		</div>
		<!--胶囊-->
		<div class="head-container" :style="{'height': capsuleHeight}">
			<wd-icon @click="jumpBack" color="#fff" name="thin-arrow-left" size="18px"></wd-icon>
			<div>问题反馈</div>
			<div style="width: 18px;"></div>
		</div>
		<!--主体-->
		<div class="tabbarpage-body" >
			<div class="dark-purple-card problem-container">
				<textarea class="text-area" v-model="problem"></textarea>
			</div>
			<div class="sure-btn-container">
				<wd-button @click="problemSend">确定</wd-button>
				<wd-button @click="jumpBack" type="info">取消</wd-button>
			</div>
		</div>
	</view>
</template>


<script setup>
	import TabbarCom from '@/components/TabbarCom.vue'
	import { ref } from 'vue';
	import { globalProps } from '@/js/global.js'
	
	const statusBarHeight = ref(globalProps.statusBarHeight)
	const capsuleHeight = ref(globalProps.capsuleHeight)
	const jumpBack = ()=>{
		uni.navigateBack()
	}
	const problem = ref('')
	const problemSend = ()=>{
		uni.showToast({
			title: '感谢反馈',
			icon: 'success'
		})
	}
</script>

<style>
	@import "@/css/global.css";
	@import "@/css/animation.css";
	.head-container{
		display: flex;
		align-items: center;
		margin: 0 16px;
		justify-content: space-between;
		color: #fff;
		width: calc(100% - 32px);
		letter-spacing: 1px;
	}
	.problem-container{
		position: absolute;
		top: 12px;
		bottom: 100px;
		left: 8px;
		right: 8px;
		padding: 12px;
		border-radius: 8px;
		color: white;
		font-size: 15px;
	}
	.text-area{
		width: 100%;
		height: 100%;
	}
	.sure-btn-container{
		position: absolute;
		left: 8px;
		right: 8px;
		bottom: 10px;
		height: 90px;
		display: flex;
		align-items: center;
		justify-content: space-around;
	}
</style>
